package model

import "github.com/jinzhu/gorm"

type User struct {
	gorm.Model        // 使用gorm模板
	Name       string `gorm:"type:varchar(20); not null"`
	Email      string `gorm:"type:varchar(50); not null; unique"`
	Password   string `gorm:"size:255; not null"`
	Files      []File
	Gates      []Gate
	// Telephone string `gorm:"type:varchar(11); not null; unique"`
}
